package com.hualan.sfzy.mapper;

import com.hualan.sfzy.model.entity.PsychologyTestTitle;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author Ahao
* @description 针对表【psychology_test_title】的数据库操作Mapper
* @createDate 2025-07-03 17:40:05
* @Entity com.hualan.domain.PsychologyTestTitle
*/
@Mapper
public interface PsychologyTestTitleMapper extends BaseMapper<PsychologyTestTitle>{

    /*根据id查询(多表)*/
    PsychologyTestTitle selectByIdDuo(Integer id);

    /*查询所有(多表)*/
    List<PsychologyTestTitle> selectAllDuo(PsychologyTestTitle entity);

    /*查询多表数据的总数count*/
    Integer selectCountDuo(PsychologyTestTitle entity);

    /*查询所有title*/
    List<Map<String, Object>> selectAllTitle();


    /*根据testid查找对应的题目和选项*/
    List<PsychologyTestTitle> selectByTestId(@Param("testId") Integer testId);


}
